<?php
	class indexModel {

		protected $_table = 'documents';

		public function getAllNews() {

			$connect = mysql_connect('127.0.0.1', 'root', '');
			mysql_select_db('test', $connect);


			$sql = "SELECT * FROM  documents";

			$resource = mysql_query($sql);
			
			// mysql_fetch_array($resource);

			var_dump(mysql_fetch_array($resource));
			var_dump(mysql_fetch_assoc($resource));
		}


	}
?>